/*
 * This class was automatically generated with 
 * <a href="http://www.castor.org">Castor 1.0.4</a>, using an XML
 * Schema.
 * $Id$
 */

package com.jzhao.jpre.format.sequential.castor;

  //---------------------------------/
 //- Imported classes and packages -/
//---------------------------------/

import org.exolab.castor.xml.Marshaller;
import org.exolab.castor.xml.Unmarshaller;

/**
 * Class ISO8583Bitmap.
 * 
 * @version $Revision$ $Date$
 */
public class ISO8583Bitmap implements java.io.Serializable {


      //--------------------------/
     //- Class/Member Variables -/
    //--------------------------/

    /**
     * Field _dataName
     */
    private java.lang.String _dataName;

    /**
     * Field _isBCD
     */
    private boolean _isBCD;

    /**
     * keeps track of state for field: _isBCD
     */
    private boolean _has_isBCD;

    /**
     * Field _isMac
     */
    private boolean _isMac;

    /**
     * keeps track of state for field: _isMac
     */
    private boolean _has_isMac;


      //----------------/
     //- Constructors -/
    //----------------/

    public ISO8583Bitmap() 
     {
        super();
    } //-- com.jzhao.jpre.format.sequential.castor.ISO8583Bitmap()


      //-----------/
     //- Methods -/
    //-----------/

    /**
     */
    public void deleteIsBCD()
    {
        this._has_isBCD= false;
    } //-- void deleteIsBCD() 

    /**
     */
    public void deleteIsMac()
    {
        this._has_isMac= false;
    } //-- void deleteIsMac() 

    /**
     * Returns the value of field 'dataName'.
     * 
     * @return the value of field 'DataName'.
     */
    public java.lang.String getDataName()
    {
        return this._dataName;
    } //-- java.lang.String getDataName() 

    /**
     * Returns the value of field 'isBCD'.
     * 
     * @return the value of field 'IsBCD'.
     */
    public boolean getIsBCD()
    {
        return this._isBCD;
    } //-- boolean getIsBCD() 

    /**
     * Returns the value of field 'isMac'.
     * 
     * @return the value of field 'IsMac'.
     */
    public boolean getIsMac()
    {
        return this._isMac;
    } //-- boolean getIsMac() 

    /**
     * Method hasIsBCD
     * 
     * 
     * 
     * @return true if at least one IsBCD has been added
     */
    public boolean hasIsBCD()
    {
        return this._has_isBCD;
    } //-- boolean hasIsBCD() 

    /**
     * Method hasIsMac
     * 
     * 
     * 
     * @return true if at least one IsMac has been added
     */
    public boolean hasIsMac()
    {
        return this._has_isMac;
    } //-- boolean hasIsMac() 

    /**
     * Returns the value of field 'isBCD'.
     * 
     * @return the value of field 'IsBCD'.
     */
    public boolean isIsBCD()
    {
        return this._isBCD;
    } //-- boolean isIsBCD() 

    /**
     * Returns the value of field 'isMac'.
     * 
     * @return the value of field 'IsMac'.
     */
    public boolean isIsMac()
    {
        return this._isMac;
    } //-- boolean isIsMac() 

    /**
     * Method isValid
     * 
     * 
     * 
     * @return true if this object is valid according to the schema
     */
    public boolean isValid()
    {
        try {
            validate();
        }
        catch (org.exolab.castor.xml.ValidationException vex) {
            return false;
        }
        return true;
    } //-- boolean isValid() 

    /**
     * 
     * 
     * @param out
     * @throws org.exolab.castor.xml.MarshalException if object is
     * null or if any SAXException is thrown during marshaling
     * @throws org.exolab.castor.xml.ValidationException if this
     * object is an invalid instance according to the schema
     */
    public void marshal(java.io.Writer out)
        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
    {
        
        Marshaller.marshal(this, out);
    } //-- void marshal(java.io.Writer) 

    /**
     * 
     * 
     * @param handler
     * @throws java.io.IOException if an IOException occurs during
     * marshaling
     * @throws org.exolab.castor.xml.ValidationException if this
     * object is an invalid instance according to the schema
     * @throws org.exolab.castor.xml.MarshalException if object is
     * null or if any SAXException is thrown during marshaling
     */
    public void marshal(org.xml.sax.ContentHandler handler)
        throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
    {
        
        Marshaller.marshal(this, handler);
    } //-- void marshal(org.xml.sax.ContentHandler) 

    /**
     * Sets the value of field 'dataName'.
     * 
     * @param dataName the value of field 'dataName'.
     */
    public void setDataName(java.lang.String dataName)
    {
        this._dataName = dataName;
    } //-- void setDataName(java.lang.String) 

    /**
     * Sets the value of field 'isBCD'.
     * 
     * @param isBCD the value of field 'isBCD'.
     */
    public void setIsBCD(boolean isBCD)
    {
        this._isBCD = isBCD;
        this._has_isBCD = true;
    } //-- void setIsBCD(boolean) 

    /**
     * Sets the value of field 'isMac'.
     * 
     * @param isMac the value of field 'isMac'.
     */
    public void setIsMac(boolean isMac)
    {
        this._isMac = isMac;
        this._has_isMac = true;
    } //-- void setIsMac(boolean) 

    /**
     * Method unmarshal
     * 
     * 
     * 
     * @param reader
     * @throws org.exolab.castor.xml.MarshalException if object is
     * null or if any SAXException is thrown during marshaling
     * @throws org.exolab.castor.xml.ValidationException if this
     * object is an invalid instance according to the schema
     * @return the unmarshaled
     * com.jzhao.jpre.format.sequential.castor.ISO8583Bitmap
     */
    public static com.jzhao.jpre.format.sequential.castor.ISO8583Bitmap unmarshal(java.io.Reader reader)
        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
    {
        return (com.jzhao.jpre.format.sequential.castor.ISO8583Bitmap) Unmarshaller.unmarshal(com.jzhao.jpre.format.sequential.castor.ISO8583Bitmap.class, reader);
    } //-- com.jzhao.jpre.format.sequential.castor.ISO8583Bitmap unmarshal(java.io.Reader) 

    /**
     * 
     * 
     * @throws org.exolab.castor.xml.ValidationException if this
     * object is an invalid instance according to the schema
     */
    public void validate()
        throws org.exolab.castor.xml.ValidationException
    {
        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
        validator.validate(this);
    } //-- void validate() 

}
